import request from 'umi-request';

const http = {
  get() {
    return request
      .get('/api/todolist')
      .then((response) => {
        return response;
      })
      .catch(function (error) {
        console.log(error);
      });
  },
};

export default http;
